<template>
    <div>
        <p>{{ count }}</p>
        <p @click="handleChange">changeCount</p>
    </div>
</template>

<script setup>
const props = defineProps(['count', 'updateCount']);

const handleChange = () => {
    const num = Number((Math.random() * 100).toFixed(0));
    props.updateCount(num)
};
</script>

<style lang="scss" scoped>

</style>